import { Component } from 'react';
import classNames from 'classnames';
import styles from './SeniorSearch.less';
import { RadioGroup,Radio } from '@blueprintjs/core';
import Modal from '../../../../components/modals/BaseModal';
import { connect } from 'dva';
import { updateState } from '../../../../models/global';

class SeniorSearch extends Component {
	constructor(props) {
	    super(props);
		this.state = {

		}
	}

	render() {
		const  { title, isOpen, className, handleClose, handleOk,sysType } = this.props;
		return (
		    <Modal
		        icon="path-search"
		        title = {title || '高级查询'}
		        isOpen = {isOpen}
		        handleClose = {handleClose}
            handleOk = {() => {
                updateState({sysType: 'ssearch'})
                console.log(this.props)
                handleClose();
            }}
		        >
		        高级查询
		    </Modal>
		)
	}
}

function positionStateToProps(state) {
    return {
        sysType: state.map.sysType
    };
}

export default connect(positionStateToProps)(SeniorSearch);
